﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BiztalkConfigLoader
{
    public partial class AddObject : Form
    {


        public object ObjectToAdd { get; set; }
        public AddObject()
        {
            InitializeComponent();
            Init();
        }

        private void Init()
        {
            if (ObjectToAdd != null)
            {

                pgObject.SelectedObject = ObjectToAdd;
            }
        }

        private void AddObject_Load(object sender, EventArgs e)
        {
            if (ObjectToAdd != null)
            {

                pgObject.SelectedObject = ObjectToAdd;
            }

        }

        private void bbtnSave_Click(object sender, EventArgs e)
        {
            this.Close();

        }

        

        
    }
}
